{extend name='common/common' /}
{block name="style"}
<style media="screen">
.info_content{
    border:solid 1px #2cbca3;
    padding:10px 15px;
}
.ibox-content{
    padding-left: 40px;
    padding-right: 40px;
}
.base_title{
    margin-top: 15px;
}
.mem_base_info{

}
.mem_base_info dl,table{
    margin:9px 0px;
}
/* .mem_base_info dl:nth-last-child(2){
    margin-bottom: 0px;
} */
dt,dd{
    font-weight: 400;
    font-size: 12px;
}
dt{
    text-align: right;
    min-width: 100px;
    color:#999;
}
.clear{
    clear:both;
}
.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-12{
    padding: 0px;
    margin: 0px;
}
table{
    border:solid 1px #D7D7D7;
    text-align: center;
}
.account_list{
    border:none;
}
table>tr,table>tr>td,th{
    text-align: center;
}
.stu_photo{
    width:80px;
    height:80px;
    text-align: center;
    line-height: 80px;
    background-color: #ddd;
    display: inline-block;
}
.stu_photo img{
    width: 80%;
    height: 80%;
}
.studentInfo{
    margin-top: 19px;
}
</style>
{/block}
{block name="content"}
<div class="wrapper wrapper-content animated fadeInRight">
    <!-- Panel Other -->
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h3 style="font-size:20px;">
                <a href="javascript:history.back(-1);">
                    <i class="fa fa-arrow-circle-left" aria-hidden="true" style="font-size: 20px;"></i>
                </a>
                会员信息
            </h3>
        </div>
        <div class="ibox-content">
            <div class="info_content">
                <!-- 会员基本信息 -->
                <div class="mem_base_info">
                    <h3 class="base_title"><b>基本信息</b></h3>
                    <dl class="col-md-12">
                        <dt class="col-md-1">会员ID：</dt>
                        <dd class="col-md-3"><?=$mem_baseInfo['id'];?></dd>
                        <dt class="col-md-1">会员名称：</dt>
                        <dd class="col-md-3"><?=$mem_baseInfo['name'];?></dd>
                        <dt class="col-md-1">联系电话：</dt>
                        <dd class="col-md-2"><?=$mem_baseInfo['phone'];?></dd>
                    </dl>
                    <dl class="col-md-12">
                        <dt class="col-md-1">年龄：</dt>
                        <dd class="col-md-3"><?=$mem_baseInfo['age'];?></dd>
                        <dt class="col-md-1">QQ号：</dt>
                        <dd class="col-md-3"><?=$mem_baseInfo['qq'];?></dd>
                        <dt class="col-md-1">微信号：</dt>
                        <dd class="col-md-2"><?=$mem_baseInfo['weixin'];?></dd>
                    </dl>
                    <dl class="col-md-12">
                        <dt class="col-md-1">会员状态：</dt>
                        <dd class="col-md-3"><?=$mem_baseInfo['status'];?></dd>
                        <dt class="col-md-1">会员等级：</dt>
                        <dd class="col-md-3"><?=$mem_baseInfo['grade'];?></dd>
                        <dt class="col-md-1">所属咨询师：</dt>
                        <dd class="col-md-2"><?=$mem_baseInfo['relation'];?></dd>
                    </dl>
                    <dl class="col-md-12">
                        <dt class="col-md-1">添加时间：</dt>
                        <dd class="col-md-3"><?=$mem_baseInfo['time'];?></dd>
                        <dt class="col-md-1">来源：</dt>
                        <dd class="col-md-3"><?=$mem_baseInfo['source'];?></dd>
                        <dt class="col-md-1">是否分享：</dt>
                        <dd class="col-md-2"><?=$mem_baseInfo['share'];?></dd>
                    </dl>
                    <dl class="col-md-12">
                        <dt class="col-md-1">民族：</dt>
                        <dd class="col-md-3"><?=$mem_baseInfo['nation'];?></dd>
                        <dt class="col-md-1">身份证号码：</dt>
                        <dd class="col-md-3"><?=$mem_baseInfo['id_card'];?></dd>
                        <dt class="col-md-1">出生日期：</dt>
                        <dd class="col-md-2"><?=$mem_baseInfo['birthday'];?></dd>
                    </dl>
                    <dl class="col-md-12">
                        <dt class="col-md-1">性别：</dt>
                        <dd class="col-md-3"><?=$mem_baseInfo['sex'];?></dd>
                        <dt class="col-md-1">学历：</dt>
                        <dd class="col-md-3"><?=$mem_baseInfo['education'];?></dd>
                        <dt class="col-md-1">地区：</dt>
                        <dd class="col-md-2"><?=$mem_baseInfo['region'];?></dd>
                    </dl>
                    <dl class="col-md-12">
                        <dt class="col-md-1">籍贯：</dt>
                        <dd class="col-md-3"><?=$mem_baseInfo['native_place'];?></dd>
                        <dt class="col-md-1">毕业学校：</dt>
                        <dd class="col-md-3"><?=$mem_baseInfo['graduate_school'];?></dd>
                        <dt class="col-md-1">证书编号：</dt>
                        <dd class="col-md-2"><?=$mem_baseInfo['certificate_number'];?></dd>
                    </dl>
                    <dl class="col-md-12">
                        <dt class="col-md-1">毕业时间：</dt>
                        <dd class="col-md-3"><?=$mem_baseInfo['graduation_time'];?></dd>
                        <dt class="col-md-1">生源途径：</dt>
                        <dd class="col-md-3"><?=$mem_baseInfo['source_origin'];?></dd>
                    </dl>
                    <div class="clear"></div>
                </div>
                <hr style="margin-bottom:19px;"/>
                <!-- 会员订单、流水信息 -->
                <?php if(!empty($ord_baseInfo)):?>
                <div class="mem_base_info">
                    <h3 class="base_title"><b>订单-流水</b></h3>
                    <?php foreach($ord_baseInfo as $val):?>
                      <!-- <div class="order_account" style="border:1px solid #ccc;margin-bottom:5px"> -->
                          <h5 style="text-align: center;"><k>---&nbsp;&nbsp;&nbsp;<i>订单</i>&nbsp;&nbsp;&nbsp;---</k></h5>
                          <table class="table table-hover order_find">
                              <tr>
                                  <th>订单ID</th>
                                  <th>学校</th>
                                  <th>专业</th>
                                  <th>层次</th>
                                  <th>制度</th>
                                  <th>教育模式</th>
                                  <th>批次</th>
                                  <th>缴费方式</th>
                                  <th>学费</th>
                                  <th>学费差额</th>
                                  <th>总金额</th>
                                  <th>经办人</th>
                                  <th>订单状态</th>
                              </tr>
                              <tr>
                                <td><?=$val['id'];?></td>
                                <td><?=$val['school'];?></td>
                                <td><?=$val['major'];?></td>
                                <td><?=$val['grade'];?></td>
                                <td><?=$val['system'];?></td>
                                <td><?=$val['acquisition_mode'];?></td>
                                <td><?=$val['batch'];?></td>
                                <td><?=$val['payment_method'];?></td>
                                <td><?=$val['tuition'];?></td>
                                <td><?=$val['difference'];?></td>
                                <td><?=$val['total_amount'];?></td>
                                <td><?=$val['agent'];?></td>
                                <td><?=$val['status'];?></td>
                              </tr>
                          </table>

                          <h5 style="text-align: center;"><k>---&nbsp;&nbsp;&nbsp;<i>流水</i>&nbsp;&nbsp;&nbsp;---</k></h5>
                          <table class="table table-hover account_list">
                              <tr>
                                  <th>流水ID</th>
                                  <th>创建时间</th>
                                  <th>到期时间</th>
                                  <th>收款时间</th>
                                  <th>流水来源</th>
                                  <th>费用</th>
                                  <th>创建人</th>
                                  <th>经办人</th>
                                  <th>流水状态</th>
                              </tr>
                              <?php if(!empty($val['accountArr'])): ?>
                                  <?php foreach($val['accountArr'] as $value):?>
                                      <tr>
                                        <td><?=$value['id'];?></td>
                                        <td><?=$value['c_time'];?></td>
                                        <td><?=$value['finish_time'];?></td>
                                        <td><?=$value['receivables_time'];?></td>
                                        <td><?=$value['acc_source'];?></td>
                                        <td><?=$value['cost'];?></td>
                                        <td><?=$value['create_uid'];?></td>
                                        <td><?=$value['agent'];?></td>
                                        <td><?=$value['status'];?></td>
                                      </tr>
                                  <?php endforeach;?>
                              <?php else:?>
                                  <tr>
                                      <td colspan="9">
                                          <p style="text-align:center"><k>---&nbsp;&nbsp;&nbsp;<i>暂无流水信息</i>&nbsp;&nbsp;&nbsp;---</k></p>
                                      </td>
                                  </tr>
                                  <tr><td colspan="9"></td></tr>
                              <?php endif;?>
                          </table>
                      <!-- </div> -->
                    <?php endforeach;?>
                    <div class="clear"></div>
                </div>
                <hr style="margin-bottom:19px;"/>
                <?php endif;?>
                <!-- 学员信息 -->
                <?php if(!empty($studentInfo)):?>
                <div class="mem_base_info">
                    <h3 class="base_title"><b>学员信息</b></h3>
                    <?php foreach($studentInfo as $vo):?>
                    <div class="studentInfo">
                        <div class="col-md-12" style="text-align:left;margin-left:50px;">
                            <div class="stu_photo">
                                <img src="{$vo['id_photo_url']|default='/upload/stidphoto/icon.svg'}" alt="<?=$vo['name'];?>" title="<?=$vo['name'];?>">
                            </div>
                        </div>
                        <dl class="col-md-12">
                            <dt class="col-md-1">学员ID：</dt>
                            <dd class="col-md-3"><?=$vo['id'];?></dd>
                            <dt class="col-md-1">学员名称：</dt>
                            <dd class="col-md-3"><?=$vo['name'];?></dd>
                            <dt class="col-md-1">性别：</dt>
                            <dd class="col-md-2"><?=$vo['sex'];?></dd>
                        </dl>
                        <dl class="col-md-12">
                            <dt class="col-md-1">出生日期：</dt>
                            <dd class="col-md-3"><?=$vo['birthday'];?></dd>
                            <dt class="col-md-1">民族：</dt>
                            <dd class="col-md-3"><?=$vo['nation'];?></dd>
                            <dt class="col-md-1">身份证号码：</dt>
                            <dd class="col-md-2"><?=$vo['id_card'];?></dd>
                        </dl>
                        <dl class="col-md-12">
                            <dt class="col-md-1">联系电话：</dt>
                            <dd class="col-md-3"><?=$vo['phone'];?></dd>
                            <dt class="col-md-1">所报考学院：</dt>
                            <dd class="col-md-3"><?=$vo['school'];?></dd>
                            <dt class="col-md-1">专业：</dt>
                            <dd class="col-md-2"><?=$vo['major'];?></dd>
                        </dl>
                        <dl class="col-md-12">
                            <dt class="col-md-1">层次：</dt>
                            <dd class="col-md-3"><?=$vo['grade'];?></dd>
                            <dt class="col-md-1">批次：</dt>
                            <dd class="col-md-3"><?=$vo['batch'];?></dd>
                            <dt class="col-md-1">考试时间：</dt>
                            <dd class="col-md-2"><?=$vo['test_time'];?></dd>
                        </dl>
                        <dl class="col-md-12">
                            <dt class="col-md-1">有无学籍变更：</dt>
                            <dd class="col-md-3"><?=$vo['roll_statusN'];?></dd>
                            <?php if($vo['roll_status'] == 1):?>
                                <dt class="col-md-1">学籍变更状态：</dt>
                                <dd class="col-md-3"><?=$vo['school_roll'];?></dd>
                                <dt class="col-md-1">学籍变更时间：</dt>
                                <dd class="col-md-3"><?=$vo['school_date'];?></dd>
                            <?php endif;?>
                        </dl>
                        <div class="clear"></div>
                        <div id="scoreListBox" class="ibox float-e-margins col-md-12">
                      		<div class="layui-tab layui-tab-card">
                        			<ul class="layui-tab-title">
                        				{volist name="$vo['scoreList']" id="s" key="i"}
                        				{if $i eq 1}
                        				<li class="layui-this" style="width:10%;">第{$i}学期</li>
                        				{else}
                        				<li style="width:10%;">第{$i}学期</li>
                        				{/if}
                        				{/volist}
                        			</ul>
                        			<div class="layui-tab-content" style="background:#FFF">
                        				{volist name="$vo['scoreList']" id="content" key="j"}
                        				{if $j eq 1}
                          				<div class="layui-tab-item layui-show">
                          				{else}
                            				<div class="layui-tab-item">
                            				{/if}
                              					<table class="table table-bordered table-hover text-center">
                                						<thead>
                                							<tr>
                                								<th>课程名称</th>
                                								<th>平时成绩</th>
                                								<th>考试成绩</th>
                                								<th>综合成绩</th>
                                							</tr>
                                						</thead>
                                						<tbody>
                                              <?php if(!empty($content)):?>
                                                  {volist name="content" id="row"}
                                                  <tr>
                                                      <td>{$row.curriculum_name}</td>
                                                      <td>{$row.scoreNormal}</td>
                                                      <td>{$row.scoreExam}</td>
                                                      <td>{$row.scoreFinal}</td>
                                                  </tr>
                                                  {/volist}
                                              <?php else:?>
                                                  <tr>
                                                    <td colspan="4">
                                                        <p style="text-align:center"><k>---&nbsp;&nbsp;&nbsp;<i>暂无学习成绩信息</i>&nbsp;&nbsp;&nbsp;---</k></p>
                                                    </td>
                                                  </tr>
                                              <?php endif;?>
                                						</tbody>
                              					</table>
                            				</div>
                          				{/volist}
                          			</div>
                        		</div>
                      	</div>
                    </div>
                    <?php endforeach;?>
                    <div class="clear"></div>
                </div>
            </div>
            <?php endif;?>
        </div>
    </div>
</div>
{/block}
{block name="script"}
<script type="text/javascript">
    layui.use('element', function(){
        var element = layui.element;
    })
</script>
{/block}
